home *** CD-ROM | disk | FTP | other *** search
- Path: nil.zfe.siemens.de!not-for-mail
- From: rainer@nil.zfe.siemens.de (Rainer Wartha)
- Newsgroups: comp.lang.c
- Subject: Q: mem allocation in function
- Date: 28 Mar 1996 12:31:27 GMT
- Organization: Siemens AG, Neu_Perlach-Munich-Germany-Europe.
- Message-ID: <4je0qv$heq@salomon.zfe.siemens.de>
- NNTP-Posting-Host: nil.zfe.siemens.de
- X-Newsreader: TIN [UNIX 1.3 200794BETA PL0]
-
-
- Hello,
-
- is it conforming to ANSI (allowed) to allocate in
- a Function Memory for a Pointer (defined external)
- and use it after returning from the function
- (memory not freed, free shortly before exit)
-
- I've scrolled through the FAQ but beneath some simple
- answers i haven't found this...
-
- Thank you,
- Rainer
-